﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Content;

namespace WindowsGame1.gamePlugins.renderer
{
    class Score
    {
        private SpriteFont spriteFont;
        public int player1score = 0;

        public Score (ContentManager content) {
            spriteFont = content.Load<SpriteFont>("Score");
        }

        public void update ( GameTime gameTime, int[] score) {
            player1score = score[0];
        }

        public SpriteBatch draw ( SpriteBatch spriteBatch, Vector2 position ) {
            spriteBatch.DrawString(spriteFont, "   " + player1score, position, Color.White);
            return spriteBatch;
        }

    }
}
